<style type="text/css">
    .bckcolor {
        background-color: #FF0000;

    }
</style>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <span>集成计划列表</span>
                    <br>
                    <br>
                    <input type="search" ng-model="search.integration_name" style="width: 220px;" placeholder="Search Integration Name Here..." />
                </div>
                <div class="box-body" style=" ">
                    <table class="table table-hover table-bordered text-center">
                        <thead>
                        <tr>
                            <th>
                                计划周期
                            </th>
                            <th>
                                集成项目
                            </th>
                            <th>
                                集成日期
                            </th>
                            <th>
                                上线日期
                            </th>
                            <th>
                                状态
                            </th>
                            <th ng-if="info.modifiAble">
                                操作
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="i in info.integrationList|filter:search |paging:page.index:page.size">
                            <td>
                                <span ng-if="i.integration_cycle != null">{{i.integration_cycle}}</span>
                                <span ng-if="i.integration_cycle == null">-</span>
                            </td>
                            <td>
                                <span ng-show="i.integration_status == 'INT_NOT_START'">{{i.integration_name}}</span>
                                <a href="javascript:void(0)"
                                   ng-show="i.integration_status != 'INT_NOT_START'"
                                   ng-click="toIntegrationSet(i.integration_name);">{{i.integration_name}}</a>
                                <img ng-if="i.agent_ip != null" uib-popover="点击跳转至uCloud列表" popover-trigger="mouseenter"
                                     src="/beetle/image/link.png" ng-click="link(i);"
                                     style="cursor: pointer;width: 20px;">
                            </td>
                            <td>
                                <span ng-if="i.integration_date != null">{{i.integration_date}}</span>
                                <span ng-if="i.integration_date == null">-</span>
                            </td>
                            <td>
                                {{i.online_date}}
                            </td>
                            <td>
                                {{getStatusDesc(i.integration_status)}}
                            </td>
                            <td ng-if="info.modifiAble">
                                <a href="javascript:void(0)"
                                   ng-show="(i.integration_status == 'INTEGRATIONING' || i.integration_status == 'HAND_OVER')&&i.isEmergency=='1'"
                                   ng-click="reinit(i);">重新规划</a>
                                <a href="javascript:void(0)"
                                   ng-show="i.integration_status == 'INT_NOT_START'&&i.isEmergency=='1'"
                                   ng-click="init(i);">规划</a>
                                <a href="javascript:void(0)" ng-show="i.integration_status == 'HAND_OVER'"
                                   ng-click="pigeon(i);">归档</a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <uib-pagination total-items="info.integrationList|filter:search |size" ng-model="page.index" max-size="5"
                                previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"
                                items-per-page="page.size" class="pagination-sm pull-right"
                                boundary-links="true"></uib-pagination>
            </div>
        </div>
    </div>
</section>